package com.example.zyfirst.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


@TableName("t_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable{

    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;

    @TableLogic
    private Integer deleted;

    @Version  //乐观锁version注解
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    private Date create_time;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date update_time;






}
